/**
 * 
 */
package com.comDef.gui.main;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.geom.Line2D;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.JTree;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeSelectionModel;

import com.def.gui.objects.Tempowy;

/**
 * @author rrodzinski
 *
 */
public class MainWindow extends JFrame  {
	HashMap<String,JComponent> elements;
	
	private JEditorPane htmlPane;
    private JTree tree;
    private URL helpURL;
    private static boolean DEBUG = false;
    private static boolean playWithLineStyle = false;
    private static String lineStyle = "Horizontal";
	
		public MainWindow(){
			super();
			createWindow("comDef - defend your honor.", 600, 375);
			createMenu();
//			MainPanel panel = new MainPanel(10, 10);
//			getContentPane().add(panel);
//			MainPanel panel2 = new MainPanel(200, 10, 2);
//			getContentPane().add(panel2);
			elements = new HashMap<String, JComponent>();
			getContentPane().add(new TreeViews());
			pack();
			
		}
		
		public void createWindow(String title, int width, int height){
			
			setTitle(title);
//			setSize(width, height);
			
			setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
			getContentPane().setBackground(Color.BLACK);
			setLayout(null);
			setVisible(true);
			
		}
		
		public void createMenu(){
			MainMenu menu = new MainMenu();
			
			setJMenuBar(menu);
			
		}
		
		
		
		
}
